package com.aaa.demo02;

/**
 * @author ${崔灿}
 * @date 2022/10/31 10:30
 **/

public class ThreadTest {
    public static void main(String[] args) {
        //创建任务对象
        MyThread myThread = new MyThread();
        //创建线程对象
        Thread t1 = new Thread(myThread);
        //开启线程，会执行Runable中的run方法
        t1.start();
        for (int i = 0; i < 20 ;i++) {
            System.out.println(Thread.currentThread().getName() + "***"+i);
}

    }
}
